﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "OaOfficialSeal";
	string DBTablePK = "ID";
	string DBTableTitle = "";
	if(InstanceID.IsNullOrEmpty()){InstanceID = Request.QueryString["instanceid1"];}
	YJ.Platform.Dictionary BDictionary = new YJ.Platform.Dictionary();
	YJ.Platform.WorkFlow BWorkFlow = new YJ.Platform.WorkFlow();
	YJ.Platform.WorkFlowTask BWorkFlowTask = new YJ.Platform.WorkFlowTask();
	string fieldStatus = BWorkFlow.GetFieldStatus(FlowID, StepID);
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID, fieldStatus, "{\"oaofficialseal.lenddate\":\"yyyy年MM月dd日   HH时mm分\",\"oaofficialseal.returndate\":\"yyyy年MM月dd日  HH时mm分\"}");
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Scripts/FlowRun/Forms/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Scripts/FlowRun/Forms/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="1" />
<input type="hidden" id="OaOfficialSeal." name="OaOfficialSeal." value="@(TaskTitle.IsNullOrEmpty() ? BWorkFlow.GetAutoTaskTitle(FlowID, StepID, Request.QueryString["groupid"]) : TaskTitle)" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="OaOfficialSeal." />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="OaOfficialSeal" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<textarea id="Form_DBTableTitleExpression" name="Form_DBTableTitleExpression" style="display:none;width:0;height:0;"></textarea>
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = "1"=="@Request.QueryString["isreadonly"]" ? {} : @Html.Raw(fieldStatus);
	var displayModel = '@DisplayModel';
	$(window).load(function (){
		formrun.initData(initData, "OaOfficialSeal", fieldStatus, displayModel);
	});
</script>
<script type="text/javascript">
	function typeHide() {
		var yzType = document.getElementsByTagName("OaOfficialSeal.Things");
		if(yzType.length == 0) {
			$("label").each(function() {
				var labelval = $(this).html().trim();
				if(labelval == '营业执照' || labelval == '资质') {
					document.getElementById("yz").style.display = "none";
				}
			});
		}
	}</script><p><br/></p><p><br/></p><table class="flowformtable tableF table table-bordered" data-sort="sortDisabled" cellspacing="0" cellpadding="0" align="center"><tbody><tr class="firstRow"><th class="title" rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="center">公章使用申请单</th></tr><tr><th class="titleT" rowspan="1" colspan="2" valign="middle" align="center"><br/></th></tr><tr class="topTr"><td class="top" style="-ms-word-break: break-all;" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">申请人</p><input type="text" type1="flow_org" id="OaOfficialSeal.Applicant" name="OaOfficialSeal.Applicant" value="u_@YJ.Platform.Users.CurrentUserID.ToString()" style="width:55%" more="0" isflow="1" class="mymember" title="" dept="0" station="0" user="1" workgroup="0" unit="0" rootid=""/></td><td class="top" style="-ms-word-break: break-all;" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">申请部门</p><input type="text" type1="flow_org" id="OaOfficialSeal.Department" name="OaOfficialSeal.Department" value="@(YJ.Platform.Users.CurrentDeptID)" style="width:55%" more="0" isflow="1" class="mymember" title="" dept="1" station="0" user="0" workgroup="0" unit="0" rootid=""/></td></tr><tr><td style="-ms-word-break: break-all;" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt"> 申请时间</p><input type="text" type1="flow_datetime" id="OaOfficialSeal.LendDate" name="OaOfficialSeal.LendDate" value="@(YJ.Utility.DateTimeNew.LongDateTime)" format="yyyy年MM月dd日   HH时mm分" defaultvalue="%40(YJ.Utility.DateTimeNew.LongDateTime)" istime="1" daybefor="0" dayafter="0" currentmonth="0" isflow="1" class="mycalendar" title=""/></td><td style="-ms-word-break: break-all;" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">归还时间</p><input type="text" type1="flow_datetime" id="OaOfficialSeal.ReturnDate" name="OaOfficialSeal.ReturnDate" value="" format="yyyy年MM月dd日  HH时mm分" defaultvalue="" istime="1" daybefor="0" dayafter="0" currentmonth="0" isflow="1" class="mycalendar" title=""/></td></tr><tr><td style="-ms-word-break: break-all;" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">所属公司</p><select class="myselect" id="OaOfficialSeal.Company" name="OaOfficialSeal.Company" isflow="1" type1="flow_select"><option value="0">食品研究院</option></select></td><td class="Tradio" style="-ms-word-break: break-all;" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">物品种类</p><input type="radio" name="OaOfficialSeal.Things" id="OaOfficialSeal.Things_0" value="0" style="vertical-align:middle;" isflow="1" type1="flow_radio" onclick="onclick_ac142f5e961bb378936a20e4f80edbab(this);"/><label for="OaOfficialSeal.Things_0" style="vertical-align:middle;margin-right:3px;">营业执照</label><input type="radio" name="OaOfficialSeal.Things" id="OaOfficialSeal.Things_1" value="2" style="vertical-align:middle;" isflow="1" type1="flow_radio" onclick="onclick_ac142f5e961bb378936a20e4f80edbab(this);"/><label for="OaOfficialSeal.Things_1" style="vertical-align:middle;margin-right:3px;">资质</label><input type="radio" name="OaOfficialSeal.Things" id="OaOfficialSeal.Things_2" value="1" style="vertical-align:middle;" isflow="1" type1="flow_radio" onclick="onclick_ac142f5e961bb378936a20e4f80edbab(this);"/><label for="OaOfficialSeal.Things_2" style="vertical-align:middle;margin-right:3px;">印章</label><script type="text/javascript">function onclick_ac142f5e961bb378936a20e4f80edbab(srcObj){var y=$('input[name="OaOfficialSeal.Things"]:checked').val();
         if (y==0) {
                  document.getElementById("OaOfficialSeal.Type").style.display = "none";
         }else if(y==2){
                  document.getElementById("OaOfficialSeal.Type").style.display = "none";
         }else {
                  document.getElementById("OaOfficialSeal.Type").style.display = "";
     }
                    }</script></td></tr><tr><td style="-ms-word-break: break-all;" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">印章种类</p><select class="myselect" id="OaOfficialSeal.Type" name="OaOfficialSeal.Type" isflow="1" type1="flow_select"><option value=""></option><option value="公章">公章</option><option value="合同章">合同章</option><option value="投标章">投标章</option><option value="法人章">法人章</option><option value="财务专用章">财务专用章</option></select></td><td style="-ms-word-break: break-all;" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">用途类型</p><select class="myselect" id="OaOfficialSeal.Purpose" name="OaOfficialSeal.Purpose" isflow="1" type1="flow_select"><option value="外出">外出</option><option value="使用">使用</option></select></td></tr><tr class="bottomTr"><td class="bottom" style="word-break: break-all;" rowspan="1" colspan="2" valign="middle" align="left"><p class="txt"> 借用事由</p><textarea isflow="1" type1="flow_textarea" id="OaOfficialSeal.Reason" name="OaOfficialSeal.Reason" class="mytext" style="undefined"></textarea></td></tr></tbody></table><p><br/></p>